package com.lxy.seata.controller;

import com.lxy.seata.entity.TOrder;
import com.lxy.seata.service.TOrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author lixinyang
 * @className: OrderController
 * @description: TODO
 * @date 2022/05/02日  22:33
 */

@RestController
public class OrderController {

    @Resource
    private TOrderService tOrderService;


    @GetMapping("/order/create")
    public String create(TOrder order){
        tOrderService.create(order);
        return "订单创建成功";
    }

}
